package com.tansun.easycare.rule.ruleflow.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.tansun.easycare.rule.common.service.impl.RuleBaseServiceImpl;
import com.tansun.easycare.rule.ruleflow.dao.RuleFlowConditionsDao;
import com.tansun.easycare.rule.ruleflow.entity.RuleFlowConditions;
import com.tansun.easycare.rule.ruleflow.service.RuleFlowConditionsService;

/**
 * 规则流节点条件信息ServiceImpl
 *
 * @author lph
 * @version 2017-04-17
 */
@Service("ruleFlowConditionsService")
@Transactional(readOnly = true)
public class RuleFlowConditionsServiceImpl extends RuleBaseServiceImpl<RuleFlowConditionsDao, RuleFlowConditions> implements RuleFlowConditionsService {

    public RuleFlowConditions get(String id) {
        return super.get(id);
    }

    public List<RuleFlowConditions> findList(RuleFlowConditions ruleFlowConditions) {
        return super.findList(ruleFlowConditions);
    }

    public PageInfo<RuleFlowConditions> findPage(Page<RuleFlowConditions> page, RuleFlowConditions ruleFlowConditions) {
        return super.findPage(page, ruleFlowConditions);
    }

    @Transactional(readOnly = false)
    public void save(RuleFlowConditions ruleFlowConditions) {
        super.save(ruleFlowConditions);
    }

    @Transactional(readOnly = false)
    public void delete(RuleFlowConditions ruleFlowConditions) {
        super.delete(ruleFlowConditions);
    }
    
	@Override
	public void deleteByMutilVersion(Map<String, Object> map) {
		this.dao.deleteByMutilVersion(map);
	}

}